# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=tree-sitter-hcl
pkgver=1.1.0
pkgrel=1
pkgdesc="tree-sitter grammar for HCL"
url="https://github.com/MichaHoffmann/tree-sitter-hcl"
arch="all"
license="Apache-2.0"
makedepends="tree-sitter-dev"
checkdepends="tree-sitter-cli"
install_if="tree-sitter-grammars"
source="$pkgname-$pkgver.tar.gz::https://github.com/MichaHoffmann/tree-sitter-hcl/archive/refs/tags/v$pkgver.tar.gz"

build() {
	abuild-tree-sitter build
}

check() {
	tree-sitter test
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
d8bf5d558d9eb378c3dd8b740463b25062f5cf4f12756e32058824e28e3114e51bbedccd0de2981503ef873d227e56bb7a5069e362c5e77f0f9bc0e3f8bfacd5  tree-sitter-hcl-1.1.0.tar.gz
"
